package com.abe.libcore.utils

import com.abe.libcore.utils.context.ContextUtils
import java.io.File

object ExternalFileUtils {
    fun fileRootPath(): String {
        val rootDir = ContextUtils.getContext().getExternalFilesDir(null);
        return rootDir!!.absolutePath;
    }

    fun crashDirPath(): String {
        val dir = fileRootPath() + File.separator + "crash";
        return dir
    }

    fun logDirPath(): String {
        val dir = fileRootPath() + File.separator + "log";
        return dir
    }

    fun videoDirPath(): String {
        val dir = fileRootPath() + File.separator + "video";
        return dir
    }

    fun imgDirPath(): String {
        val dir = fileRootPath() + File.separator + "image";
        return dir
    }
}